<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>todo任务列表的使用</title>
  <style>
    * {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
    }

    html,
    body {
      height: 100%;
    }

    body {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ul {
      list-style: none;
    }

    .ul>li {
      border: 1px solid red;
      padding: 8px 10px;
    }

    .ul>li:not(:last-of-type) {
      margin-bottom: 10px;
    }
  </style>
</head>

<body>
  <ul class="ul"></ul>
</body>
<script>
  "use strict"; {
    let list = [{
      "content": "李白了"
    }, {
      "content": "亚瑟王"
    }, {
      "content": "闪电侠"
    }];
    const template = (list) => {
      return `${list.map((value, index, arr) => `<li>${value.content}</li>`).join("")}`;
    };
    document.querySelector(".ul").innerHTML = template(list);

    let obj = {
      name: "好扽人e"
    };
    let set = new Set();
    set.add(obj);
    set.add(obj);
    set.add(obj);
    let weak_set = new WeakSet();
    weak_set.add(obj);
    weak_set.add(obj);
    weak_set.add(obj);
    console.log(weak_set);
    console.log(set);
  };
</script>

</html>